Skip to content

Conversation

@Oxel40
Copy link

@Oxel40 Oxel40 commented Oct 15, 2025

PR Description

This adds the ability to fetch sourcemaps from remote locations over HTTP to the faro.receiver. Allowing sourcemaps > location blocks to point to an HTTP URL as the path, e.g., path = "https://foo.com/blob/sourcemaps/".

The motivation behind this feature is to support the use case where your frontend is served by an external CDN and Alloy is running on internal infrastructure, where external resources are not readily accessible, and managing and attaching volumes to the Alloy container is complex or undesired. This feature allows you to host your sourcemaps internally, e.g., on a blob storage service. It also fits the use case where you don't want to expose sourcemaps to customers but still want to be able to fetch them internally for faro.receiver's stack-trace transformations.

If multiple location blocks are defined, blocks pointing to on-disk paths will be checked first before attempting to fetch the sourcemaps over HTTP.

Which issue(s) this PR fixes

None.

Notes to the Reviewer

None.

PR Checklist

  • CHANGELOG.md updated
  • Documentation added
  • Tests updated

@Oxel40 Oxel40 requested review from a team and clayton-cornell as code owners October 15, 2025 11:40
@clayton-cornell clayton-cornell added the type/docs Docs Squad label across all Grafana Labs repos label Oct 21, 2025
@Oxel40 Oxel40 force-pushed the faro-fetch-sourcemaps-from-remote branch from 48dd657 to 688f75f Compare October 22, 2025 15:15
@clayton-cornell clayton-cornell requested a review from a team October 22, 2025 21:57
@Oxel40 Oxel40 force-pushed the faro-fetch-sourcemaps-from-remote branch from 688f75f to 9c9fb6d Compare October 28, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/docs Docs Squad label across all Grafana Labs repos

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants